package com.rg.model;
//代表订单中的一个商品项，包含订单ID、价格、数量、商品名称、关联的商品对象和订单对象。
import com.mysql.cj.x.protobuf.MysqlxCrud;
public class OrderItemsModel {
    private Integer orderId;
    private double price;
    private Integer amount;
    private String goodsName;
    private GoodsModel goods;
    private OrderModel order;

    public OrderItemsModel() {
    }
    public OrderItemsModel(double price, Integer amount, GoodsModel goods, OrderModel order) {
        super();
        this.price = price;
        this.amount = amount;
        this.goods = goods;
        this.order = order;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public GoodsModel getGoods() {
        return goods;
    }

    public void setGoods(GoodsModel goods) {
        this.goods = goods;
    }

    public OrderModel getOrder() {
        return order;
    }

    public void setOrder(OrderModel order) {
        this.order = order;
    }
}
